<template>
  <Demo msg="你好啊" school="尚硅谷" @hello="showHelloMsg">
    <span>我是你爹</span>
  </Demo>
</template>

<script>
import Demo from "@/components/Demo";

export default {
  name: "App",
  components: { Demo },
  setup() {
    function showHelloMsg(value) {
      alert("我是APP组件，我收到了参数" + value);
    }

    return {
      showHelloMsg,
    };
  },
};
</script>

<style>
</style>
